Skip to content

feat/refactor: clean-up !with parameter parsing & add more param support#640

Closed
minisbett wants to merge 8 commits intoosuAkatsuki:masterfrom
minisbett:master
Closed

feat/refactor: clean-up !with parameter parsing & add more param support#640
minisbett wants to merge 8 commits intoosuAkatsuki:masterfrom
minisbett:master

Conversation

@minisbett
Copy link
Copy Markdown
Contributor

@minisbett minisbett commented Feb 26, 2024

Describe your changes

  1. Simplifies the parsing
  2. Adds support for specifying n100, n50, ngeki and nkatu
  3. Adds tests for the parsing

Related Issues / Projects

Checklist

  • I've manually tested my code

Comment thread app/commands.py

return "{msg}: {pp:.2f}pp ({stars:.2f}*)".format(
msg=" ".join(msg_fields),
return "{pp:.2f}pp ({stars:.2f}*)".format(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should keep the msg here is nice in the sense that from in-game, it's easy to tell whether or not the server correctly parsed the params you send

It'll be quite nice now that the parsing is split into a function -- we can have a format__with__args(score_args) -> str and test that similarly

@cmyui cmyui closed this Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants